home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Instance.sea / XML Instance / Required / ccs_util.jar / regex / MatchInfo.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-12-09  |  967 b   |  34 lines

  1. package regex;
  2.  
  3. public class MatchInfo {
  4.    int start;
  5.    int end;
  6.    String matchString;
  7.  
  8.    public int end() {
  9.       return this.end;
  10.    }
  11.  
  12.    public String toString() {
  13.       return "(" + this.start + ":" + (this.end - this.start) + ":\"" + this.matchString + "\")";
  14.    }
  15.  
  16.    public MatchInfo() {
  17.       this(0, 0, "");
  18.    }
  19.  
  20.    public MatchInfo(int var1, int var2, String var3) {
  21.       this.start = var1;
  22.       this.end = var2;
  23.       this.matchString = var3;
  24.    }
  25.  
  26.    public String matchString() {
  27.       return this.matchString;
  28.    }
  29.  
  30.    public int start() {
  31.       return this.start;
  32.    }
  33. }
  34.